// console.log(...[1,2,3]);//1 2 3
// console.log(1,...[2,3,4],5);//1 2 3 4 5

// function add(x,y) {
//     return x + y;
// }
// let numbers = [1,2]
// console.log(add(...numbers));//3


// let arr = [...[1,2,3],...[4,5,6]]
// console.log(arr)

// const [first,...rest] = [1,2,3,4,5]
// console.log(first,rest)//1,[2,3,4,5]

console.log([...'hello'])//["h","e","l","l","o"]